package com.elysia.newsservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elysia.newsservice.domain.dto.CarouselDTO;
import com.elysia.newsservice.domain.entity.Carousel;
import com.elysia.newsservice.domain.vo.CarouselVO;
import com.elysia.newsservice.result.Result;

import java.util.List;

/**
 * 轮播图服务接口
 */
public interface ICarouselService extends IService<Carousel> {
    /**
     * 添加轮播图
     * @param carouselDTO 添加的轮播图信息
     * @return 添加成功后的轮播图信息
     */
    Result<CarouselVO> addCarousel(CarouselDTO carouselDTO);
    Result<List<CarouselVO>> getAllCarousel();
    /**
     * 删除轮播图
     * @param id 轮播图id
     * @return 删除结果
     */
    Result<String> deleteCarousel(Long id);
    Result<CarouselVO> updateCarousel(Long id, CarouselDTO carouselDTO);
}
